<?php 

class Ext_Music_Show_Adapter_Xiami extends Ext_Music_Show_Abstract
{
    public function _build($musicId)
    {
        $musicRow = App_Model_DbTable_Music::getInstance()->getRowById($musicId);
        if(!$musicRow){
            return "";
        }

        $siteViewUrl = $musicRow['url'];
        $viewId      = $musicRow['viewId'];
        
        $this->flash       = 'http://www.xiami.com/widget/0_'.$viewId.'/singlePlayer.swf';
        $this->siteViewUrl = $siteViewUrl;
        $this->siteName    = '虾米网';
        //$this->player   = '<embed src="http://www.xiami.com/widget/0_'.$viewId.'/singlePlayer.swf" type="application/x-shockwave-flash" width="257" height="33" wmode="transparent"></embed>';
        
    }

}
